<link rel="stylesheet" href="<?=$this->baseUrl()?>/css/main.front.css" />

<div id="nav">
    <?php if(count($this->floors) <= 0): ?>
        <i>No floor is registered</i>
    <?php endif; ?>
    <?php foreach($this->floors as $floor): ?>
    <div class="link"><a href="<?=$this->baseUrl()?>/index/index/fid/<?=$floor['floor_id']?>"><?=$floor['abbreviation']?></a></div>
    <?php endforeach; ?>
</div>
<div id="display">
    <?=$this->layout()->content?>
</div>
<div id="calendar">
    <form id="frmCheck" class="nyroModal" action="<?=$this->baseUrl()?>/index/calendar" method="get">
    Check available date for this venue:&nbsp;
    <select name="month"> <!-- month -->
        <?php
            for($i=1; $i<=12; $i++){
                $time = mktime(0,0,0,$i);
                echo "<option value='".date("n",$time)."'".((date("n")==date("n",$time))?' selected':'').">".date("F",$time)."</option>\n";
            }
        ?>
    </select>
    <select name="year"> <!-- year -->
        <?php
            $year = date("Y");
            echo "<option value='$year' selected>$year</option>\n";
            echo "<option value='".($year+1)."'>".($year+1)."</option>\n";
            echo "<option value='".($year+2)."'>".($year+2)."</option>\n";
        ?>
    </select>
    <input type="hidden" name="vid" id="vid" value="1" />
    <input type="submit" value="Check" />
    </form>
</div>